package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 articlecomment
 *
 * @author ruoyi
 * @date 2024-08-26
 */
public class Articlecomment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 文章id
     */
    @Excel(name = "文章id")
    private Long articleId;

    /**
     * 评论id
     */
    @Excel(name = "评论id")
    private Long commentId;

    public Articlecomment() {

    }

    public Articlecomment(Long articleId, Long commentId) {
        this.articleId = articleId;
        this.commentId = commentId;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }

    public Long getArticleId() {
        return articleId;
    }

    public void setCommentId(Long commentId) {
        this.commentId = commentId;
    }

    public Long getCommentId() {
        return commentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("articleId", getArticleId())
                .append("commentId", getCommentId())
                .toString();
    }
}
